package ${table.fileTemplates.entity.filePackage};

<#list table.importPackages as pkg>
import ${pkg};
</#list>
import java.io.Serializable;
import javax.persistence.Id;

<#if table.comment!=''>
/**
 * ${table.comment}
 */
</#if>
<#if enableLombok>
@Data
</#if>
<#if table.isTableAnnotation>
@Table(name="${table.jdbcName}")
</#if>
<#if table.superClass??>
public class ${table.javaName} extends ${table.superClass.simpleName} implements Serializable{
<#else>
public class ${table.javaName} implements Serializable{
</#if>

	private static final long serialVersionUID = 1L;

<#list table.columns as column>
  <#if column.comment!=''>
	/**
	 * ${column.comment}
	 */
  </#if>
  <#if column.isPrimaryKey>
	@Id
  </#if>
  <#if column.isColumnAnnotation>
	@Column(name = "${column.jdbcName}")
  </#if>
	private ${column.propertyType.simpleName} ${column.property};

</#list>
<#if !enableLombok>
  <#list table.columns as column>

	public ${column.propertyType.simpleName} get${column.capitalProperty} () {
		return ${column.property};
	}

	public void set${column.capitalProperty} (${column.propertyType.simpleName} ${column.property}) {
		this.${column.property} = ${column.property};
	}
  </#list>
</#if>

}
